﻿// See https://aka.ms/new-console-template for more information
using ConsoleApp1;
using System;


MitCom mitCom=new MitCom() ;


Console.WriteLine("Hello, World!");
CncConnectParam param = new CncConnectParam();
param.Host = "192.168.1.38";
param.Port = 8193;
//param.Host = "192.168.1.32";
//param.Port = 502;
string IpText = param.Host;
ushort PortText = param.Port;
int timeout = param.Timeout;
ushort Flibhndl;



param.NcType = "M800M";
string NcTypeCmbText = "M800M";
param.NCCardNoText = "1";
string NCCardNoText = "1";
string TimeOutText = "";
param.TimeOutText = "1000";
string Host = "";

NcTypeCmbText = param.NcType;
    NCCardNoText = param.NCCardNoText;
    TimeOutText = param.TimeOutText;
    Host = param.Host;

//    mitCom.GetSimConnect(NcTypeCmbText, NCCardNoText, TimeOutText, Host);
//    mitCom.GetSimVersion(1, 0, out var version);
//    if (string.IsNullOrEmpty(version))
//    {
//    Console.WriteLine("false");

//    }
//    else
//    {

//    Console.WriteLine("true");
//}


//this.IpText ="" ;IpText.Trim();
//this.PortText = PortText;
//short ret = Focas1.cnc_allclibhndl3(IpText, PortText, timeout, out Flibhndl);
//if (ret == Focas1.EW_OK)//连接成功
//{
//    var s = "kk";
//}
